/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter1_modifiers;

/**
 *
 * @author Denise Carolina
 */
public class MainForPubliClass {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        PublicClass x = new PublicClass() {

            @Override
            void method2() {
                throw new UnsupportedOperationException("Not supported yet.");
            }
        };

        System.out.println("->" + x.protectedMember);
    }

}
